package com.xlink.service;

import com.google.protobuf.ServiceException;
import com.xlink.domain.XlinkUser;
import org.moon.rbac.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.Map;

/**
 * Created by Cathy on 2015/12/14.
 */
public interface XlinkUserService {

    User register(String userName, String password, String email);

    boolean isUserNameExists(String userName);

    boolean isemailRegistered(String email);

    XlinkUser login(String userName, String password);

    void updateUser(Map<String,Object> params);
/*
    void processActivate(String email,String validateCode) throws ServiceException;
*/
    Map<String,Object> getById(Long id);

}
